package com.example.spring.jdbc.dao;

import com.example.spring.jdbc.service.dto.BrandInfo;
import com.example.spring.jdbc.service.dto.RougeInfo;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @author : zhayh
 * @date : 2021-3-31 20:11
 * @description :
 */

public interface RougeDao {
    List<BrandInfo> getAllBrandInfo();

    RougeInfo selectById(Long id);

    RougeInfo insert(RougeInfo rougeInfo);

    RougeInfo updatePrice(Long id, Float price);

    int delete(Long id);

    Page<RougeInfo> selectByPage(Integer pageIndex, Integer pageSize);

    Page<RougeInfo> selectByKeyword(String keyword, Integer pageIndex, Integer pageSize);

    Long getTotalCount();

    int[] batchInsert(List<BrandInfo> brandInfos);

    RougeInfo updateName(Long id, String name);

}
